﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;

namespace UnitTests
{
    public class Helper
    {
        public static object GetPrivateField(object inst, string name)
        {
            FieldInfo fi = inst.GetType().GetField(name, BindingFlags.NonPublic|BindingFlags.Instance);
            return fi != null ? fi.GetValue(inst) : null;
        }
    }
}
